.sf_core_table {
  width: 100%;
  height: 100%;
  box-sizing: border-box;

  .ag-pinned-left-cols-container {
    pointer-events: none;

    .ag-row {
      .ag-cell:not(:first-of-type) {
        pointer-events: all;
      }
    }

    .ag-row-group {
      pointer-events: all;
    }
  }

  .sf_core_table_header {
    height: 36PX;
    line-height: 36PX;
    display: flex;
    justify-content: right;

    .sf_core_table_header_total {
      flex: auto;
      margin: 0;
      padding: 2px 0;
      text-align: left;
      line-height: 22px;

      .sf_core_table_header_total_label {
        font-size: 8px;
        margin-right: 5px;
      }

      .sf_core_table_header_total_text {
        color: @primary-color;
        margin-right: 2px;
        font-size: 12px;
      }

      .sf_core_table_header_total_split {
        margin-right: 5px;
      }
    }

    .sf_core_table_header_search {
      width: 200px;
      // padding-top: 5px;
      box-sizing: border-box;
      display: flex;
      align-items: center;

      .ant-input-search {
        margin-left: 5px;

        .ant-input, .ant-btn {
          background-color: #f5f5f599;
        }
      }
    }
  }

  .ant-spin-container {
    width: 100%;
    height: 100%;
  }

  .ag-theme-alpine {
    width: 100%;
    height: 100%;
    font-size: 10px;
    box-sizing: border-box;
    --ag-row-group-indent-size: 18px;
    --ag-foreground-color: @text-color;

    &.ag-popup {
      width: auto;
      height: auto;

      .ag-menu {
        .ag-menu-list {
          padding: 0;

          .ag-menu-option {
            display: block;
            padding: 2px 5px;

            * {
              padding: 0;
              vertical-align: text-top;
            }

            .ag-menu-option-icon {
              margin-right: 5px !important;
            }
          }
        }
      }
    }

    .ag-watermark {
      display: none !important;
    }

    .ag-root-wrapper {
      border-radius: @border-radius-base;
    }

    .ag-selection-checkbox {
      margin-right: 5px;
    }

    .ag-checkbox-input-wrapper {
      font-size: 10px;
      width: 10px;
      height: 10px;
      line-height: 10px;

      .ag-checkbox-input {
        pointer-events: auto;
      }
    }


    .ag-header {

      .ag-header-select-all {
        margin-right: 5px;
      }

      .ag-header-cell {
        padding: 0 5px;
      }
    }

    .ag-row {
      font-size: 10px;

      .ag-cell {
        padding: 0 5px;
        border: none;
        height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height)) !important;
        line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height)) !important;

        .ag-group-expanded,
        .ag-group-contracted {
          margin-right: 0;
        }

        .ag-row-group-leaf-indent {
          margin-left: 12px;
        }

        .ag-cell-value, .ag-group-value {
          width: 100%;
        }

        .ag-checkbox-cell {
          .ag-checkbox {
            margin: 0 auto;
          }
        }
      }
    }

    .sf_core_table_tree_checkbox {
      position: relative;
    }
  }

@for i from 1 to 20 {
  .ag-row-group-indent-1 {
    padding-left: 8px;
  }

  .ag-row-level-1 .ag-row-group-leaf-indent {
    margin-left: 40px;
  }
}

  .sf_core_table_pagination {
    box-sizing: border-box;
    text-align: right;
    background-color: @base-bg-color-box;
    padding: 7.4px 35px;
  }


}